<!doctype html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="css/mui.min.css" rel="stylesheet" />
		
	</head>

	<body>
		
		<div class="mui-content">
		    <ul class="mui-table-view">
		        <li class="mui-table-view-cell mui-media">
		            <a href="javascript:;" id="link_myface">
		            	<span class=" mui-pull-right mui-icon mui-icon-arrowright" 
		            		style="line-height: 42px;color: lightgray;margin-left: auto;"></span>
		                <img id="img_my_face" class="mui-media-object mui-pull-right" src="css/registLogin/arrow.jpg"
		                	style="border-radius:50%;-webkit-border-radius:50%;-moz-border-radius:50%;">
		                <div class="mui-media-body title">
		                    头像
		                </div>
		            </a>
		        </li>
		        <li class="mui-table-view-cell mui-media">
		            <a href="javascript:;">
		            	<span class="mui-pull-right mui-icon mui-icon-arrowright"
		            		style="line-height: 20px;color: lightgray;margin-left: auto;"></span>
		            	<span id="span-nickname" class="mui-pull-right" style="color: lightgray; font-size: 14px; ">月下</span>
		                <div class="mui-media-body" style="ont-size: 16px;">
		                    昵称
		                </div>
		            </a>
		        </li>
		        <li class="mui-table-view-cell mui-media">
		            <a href="javascript:;">
		            	<span class="mui-pull-right mui-icon mui-icon-arrowright"
		            		style="line-height: 20px;color: lightgray;margin-left: auto;"></span>
		            		<span id="span-username" class="mui-pull-right" style="color: lightgray; font-size: 14px; ">yuexia</span>
		                <div class="mui-media-body " style="ont-size: 16px;">
		                    月聊账号
		                </div>
		            </a>
		        </li>
		        <li class="mui-table-view-cell mui-media">
		            <a href="javascript:;">
		            	<span class=" mui-pull-right mui-icon mui-icon-arrowright"
		            		style="line-height: 20px;color: lightgray;margin-left: auto;"></span>
		                <img class="mui-media-object mui-pull-right" src="image/qrcode.png" style="max-height: 20px; max-width: 20px;">
		                <div class="mui-media-body" style="ont-size: 16px;">
		                    二维码
		                </div>
		            </a>
		        </li>
		    </ul>
		    
		    <br />
		    
		    <ul class="mui-table-view">
		    	<li class="mui-table-view-cell mui-media" style="text-align: center;">
		            <a href="javascript:;">
		                <div class="mui-media-body" style="ont-size: 16px;">
		                    退出登录
		                </div>
		            </a>
		        </li>
		    </ul>
		</div>
		
		<script src="js/mui.min.js"></script>
		<script src="js/app.js"></script>
		<script type="text/javascript">
			mui.init()
			
			mui.plusReady(function(){
				
				
				// 页面跳转，我的头像
				var link_myface = document.getElementById("link_myface");
				link_myface.addEventListener("tap", function() {
					mui.openWindow("myface.html", "myface.html");
				});
				
				var meWebView = plus.webview.currentWebview();
				
				meWebView.addEventListener("show",function(){
					
					//获取全局用户对象
					var userInfo = app.getUserGlobalInfo();
					if (userInfo != null){
						var faceImage = userInfo.faceImage;
						var nickname = userInfo.nickname;
						var username = userInfo.username;
						
						var span_nickname = document.getElementById("span-nickname");
						var span_username = document.getElementById("span-username");
						
						span_nickname.innerHTML = nickname;
						span_username.innerHTML = username;
						
						if(app.isNotNull(faceImage)){
							var img_my_face = document.getElementById("img_my_face");
							img_my_face.src = app.imgServerUrl + faceImage;
						}
					}
				});
				
				
				
			});
		</script>
	</body>

</html>